package com.webvihar.access2db.restapi;

import org.apache.http.client.methods.HttpRequestBase;
import org.apache.http.impl.client.DefaultHttpClient;

import com.webvihar.common.utils.AbstractHttpHelper;

public class A2DbHttpHelper extends AbstractHttpHelper {
    public A2DbHttpHelper() {
        super();
    }
    
	@Override
	protected DefaultHttpClient createHttpClient() {
		//TODO: cshine: this is where we create and setup our http client.
		DefaultHttpClient client = new DefaultHttpClient();
		return client;
	}

	@Override
	public void setupRequest(HttpRequestBase request) {
		//TODO: cshine: request headers can be added here
	    request.addHeader("Content-type", "application/json");
	}
}
